OSError: [Errno 6] No such device or address · Issue #3 · sassoftware/model | 您所在的位置:网站首页 › no such device or address › OSError: [Errno 6] No such device or address · Issue #3 · sassoftware/model |
I'm trying to go through the ImportPythonModel.ipynb notebook in the examples. I do, however, get an error which I think needs to be solved in the package itself.
I made a local copy of the package files and I changed line 150 in writeJSONFiles.py to modeler = getpass.getuser() Someone recommended getpass.getuser() to me since it checks the environment variables LOGNAME or USERNAME to find out who the user is, and falls back to pwd.getpwuid(os.getuid())[0] to get the login name of the current real user id. I tested it in my environment and it works like a charm. Maybe it would be an option in the pzmm package as well? |
今日新闻 |
推荐新闻 |
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 |